package com.wb.system.mapper;


import com.wb.common.vo.*;
import com.wb.system.domain.ExamRecordDetailEntity;
import com.wb.system.domain.ExamRecordsEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExamsRecordsMapper {
    List<ExamRecordsEntity> selectExamRecordList(ExamRecordModelVO examRecordModelVO);

    ExamRecordsEntity selectById(Long id);

    void updateExamRecordById(ExamRecordsEntity examRecordsEntity);

    void removeExamRecordById(Long id);

    void saveExamRecord(ExamRecordsEntity examRecordsEntity);


    void addExamRecordDetail(@Param("entityList") List<ExamRecordDetailEntity> entityList);

    List<ExamRecordDetailEntity> selectExamRecordDetailList(Long id);

    List<ExamRecordsEntity> selectExamsHistoryList(ExamsHistoryModelVO vo);


    ExamsStatsStatistic selectExamsStatsStatisticByUserId(ExamsStatsModelVO vo);


    void batchUpdateExamRecordDetail(@Param("entityList") List<ExamRecordDetailEntity> entityList);

    List<ExamsTypeStatsStatistic> typeStats(ExamsStatsModelVO vo);

    ExamsStatsQuestionStatistic statsQuestion(ExamsStatsQuestionModelVO vo);
}
